package com.mxpio.erp.common.inventory.entity;

import com.mxpioframework.jpa.annotation.Generator;
import com.mxpioframework.security.annotation.Dict;
import com.mxpioframework.security.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @Author : 吴盼盼
 * @Datetime : 2022/10/6 17:52
 * @Desc :
 * @Modor :  Modifytime:
 * @modDesc :
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "MB_ERP_INV_INVENTORY_REVIEW")
@Schema(description="盘点单盘点复核记录")
public class InventoryReview extends BaseEntity {
    private static final long serialVersionUID = 1L;
    @Id
    @Generator
    @Column(name = "ID_", updatable = false)
    @Schema(description = "ID")
    private String id;

    @Column(name = "INVENTORY_CODE_")
    @Schema(description = "盘点单号")
    private String inventoryCode;

    @Column(name = "REVIEW_RESULT_")
    @Schema(description = "复核结果")
    @Dict(dicCode = "ERP_BUY_REQ_AUDIT_OPINION")
    private String reviewResult;

    @Column(name = "REVIEW_OPINION_")
    @Schema(description = "复核意见")
    private String reviewOpinion;


    @Column(name = "REVIEW_FILE_URL_")
    @Schema(description = "复核附件")
    private String reviewFileUrl;
}
